#ifndef _KEYWORDCOMMANDER_H_
#define _KEYWORDCOMMANDER_H_

#include "editDistance.h"
#include "SingleCut.h"
#include <map>
#include <vector>
#include <iostream>
#include <sstream>

class keyWordCommander{
public:
    keyWordCommander();
    ~keyWordCommander();
    std::vector<std::string>& getKeyWord(std::string &str);
    void printFreq();
    void printIndex();
    void dicInit();
private:
    std::vector<std::pair<std::string,int>> _freq;
    std::unordered_map<std::string,std::set<int>> _index;
};
#endif
